//
//  HandWritingView.h
//  etionUI
//
//  Created by wangjian on 12/9/13.
//  Copyright (c) 2013 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {EHandWritingViewModeSingleWord, EHandWritingViewModeMultiWord} EHandWritingViewMode;

@class CHandWritingView;
@protocol CHandWritingViewDeleagte <NSObject>

- (void)handWritingViewCancelEdit:(CHandWritingView *)view;
- (void)handWritingView:(CHandWritingView *)view finishEditWithContent:(UIImage *)content;

@end

@interface CHandWritingView : UIView

@property (nonatomic, assign) id<CHandWritingViewDeleagte> delegate;
@property (nonatomic, assign) EHandWritingViewMode mode;
@property (nonatomic, assign) CGRect displayFrame;
@property (nonatomic, assign) CGSize contentSize;

- (void)showButtonsAnimated:(BOOL)animated complete:(void (^)(BOOL finished))complete;
- (void)hideButtonsAnimated:(BOOL)animated complete:(void (^)(BOOL finished))complete;

@end
